<!doctype html>
<html>
<head>
  <title>{% block title %}{% endblock %}</title>
  <meta charset="UTF-8">
  <meta name="baidu-site-verification" content="U8lkDYygp6" />
  <meta name="keywords" content="杨学峰个人博客、Python、Django、MySql、uWSGI、HTML、Jquery、Redis、数据库、服务器、性能优化">
  <meta name="description" content="杨学峰个人博客、Python、Django、MySql、uWSGI、HTML、Jquery、Redis、数据库、服务器、性能优化。记录和分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  {% include "base/css.html" %}
  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?89d3048cf52d3661c28fd256634983f5";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>
</head>

<body>
  {% block head %}
    {% include "base/top.html" %}
  {% endblock %}

  {% block banner %}
  {% endblock %}

  <main>
    <div class="container">
    {% block content %}
    {% endblock %}

    {% include "base/side.html" %}
    </div>
  </main>

  {% block footer %}
    {% include "base/footer.html" %}
  {% endblock %}

  <div class="search-popup">
    <i class="search-popup__close fa fa-times fa-2x"></i>
    <div class="search-popup__container container">
      <form role="search" method="get" class="search-form" action="/search/">
        <input value="{{ s|default:'' }}" name="s" class="" type="text" placeholder="Search">
      </form>
    </div>
  </div>
  <div class="content-overlay"></div>
  {% include "base/js.html" %}
  <script>
    $('pre').addClass("line-numbers").css("white-space", "pre-wrap");
    // 导航栏选中高亮
    $(document).ready(function(){
      $(".nav a").each(function(){
        $this = $(this);
        if($this[0].href==String(window.location)){
          $this.addClass('nav__item--active');
        }
      });
    });

    // baidu push
    (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https'){
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else{
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
    })();
  </script>
  {% block js %}

  {% endblock %}
</body>
</html>
